Convolutions with various kernels

11.1 μs
1.5 s
3.5 ms
3.3 ms
kernel
9×9 OffsetArray(::Array{Float64,2}, -4:4, -4:4) with eltype Float64 with indices -4:4×-4:4:
 0.0007634473286087527  0.001831414934844717  …  0.0007634473286087527
 0.001831414934844717   0.004393336040201354     0.001831414934844717
 0.00342153354840464    0.008207832296747467     0.00342153354840464
 0.004978301937756901   0.011942325524393557     0.004978301937756901
 0.005641155139668816   0.013532427693987034     0.005641155139668816
 0.004978301937756901   0.011942325524393557  …  0.004978301937756901
 0.00342153354840464    0.008207832296747467     0.00342153354840464
 0.001831414934844717   0.004393336040201354     0.001831414934844717
 0.0007634473286087527  0.001831414934844717     0.0007634473286087527
364 ms
388 ms
1.0000000000000004
29.9 ms
kernel_sharp
3×3 OffsetArray(::Array{Float64,2}, -1:1, -1:1) with eltype Float64 with indices -1:1×-1:1:
 -0.5  -1.0  -0.5
 -1.0   7.0  -1.0
 -0.5  -1.0  -0.5
82.1 ms
sharp_image
303 ms
1.0
2.3 μs
34.4 ms
701 ns
2.4 s
conv_image
935 ms
32.8 ms

Sobel

5.9 μs
kernel_sobel
3×3 OffsetArray(::Array{Float64,2}, -1:1, -1:1) with eltype Float64 with indices -1:1×-1:1:
 -0.125  0.0  0.125
 -0.25   0.0  0.25
 -0.125  0.0  0.125
774 ms
4.5 μs
0.0
2.4 μs
321 ms

Zebra

2.8 μs
212 ms
11.8 s
11.6 ms
zebra_kernel
9×9 OffsetArray(::Array{Float64,2}, -4:4, -4:4) with eltype Float64 with indices -4:4×-4:4:
 0.0007634473286087527  0.001831414934844717  …  0.0007634473286087527
 0.001831414934844717   0.004393336040201354     0.001831414934844717
 0.00342153354840464    0.008207832296747467     0.00342153354840464
 0.004978301937756901   0.011942325524393557     0.004978301937756901
 0.005641155139668816   0.013532427693987034     0.005641155139668816
 0.004978301937756901   0.011942325524393557  …  0.004978301937756901
 0.00342153354840464    0.008207832296747467     0.00342153354840464
 0.001831414934844717   0.004393336040201354     0.001831414934844717
 0.0007634473286087527  0.001831414934844717     0.0007634473286087527
9.1 μs
conv_zebra
341 ms
11.1 ms
13 ms

Function definitions

2.6 μs
18.3 s
show_colored_kernel (generic function with 1 method)
36.9 μs
decimate (generic function with 2 methods)
42.2 μs
shrink_image (generic function with 2 methods)
73.3 μs
rgb_to_float (generic function with 1 method)
24.6 μs
fourier_spectrum_magnitudes (generic function with 1 method)
29.4 μs
plot_1d_fourier_spectrum (generic function with 2 methods)
37.4 μs
heatmap_2d_fourier_spectrum (generic function with 1 method)
23.2 μs
clamp_at_boundary (generic function with 1 method)
35.1 μs
rolloff_boundary (generic function with 1 method)
33.5 μs
convolve (generic function with 2 methods)
104 μs
box_blur (generic function with 1 method)
38.7 μs
gauss_blur (generic function with 2 methods)
32.6 μs